﻿using System;
using System.Windows;

namespace Demos.Knapsack
{
    /// <summary>
    /// Interaction logic for View.xaml
    /// </summary>
    public partial class View : Window
    {
        public View()
        {
            InitializeComponent();
        }

        private void WindowOnSizeChanged(object sender, SizeChangedEventArgs e)
        {
            (DataContext as ViewModel).MaxX = Control.ActualWidth;
            (DataContext as ViewModel).MaxY = Control.ActualHeight;
        }

        private void SalirClick(object sender, RoutedEventArgs e)
        {
            Close();
        }
    }
}
